package com.kandinfo.isbnmanage.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.kandinfo.base.common.repository.BaseRepository;
import com.kandinfo.isbnmanage.domian.HomeworkPageQuestion;

public interface HomeworkPageQuestionRepository extends BaseRepository<HomeworkPageQuestion, Long> {

	@Query(value="SELECT hpq.* FROM homework_page_question hpq where hpq.homework_id = ?1 and hpq.status = ?2" ,nativeQuery=true)
	List<HomeworkPageQuestion> findByInformationId(Long informationId, String status);

}
